/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package ma.projet.local;

import java.util.Date;
import java.util.List;
import javax.ejb.Local;
import ma.projet.entities.Incident;

/**
 *
 * @author Maison
 */
@Local
public interface IncidentFacadeLocal {
    public int NbrIcidentDay(Date deb);
    
    public int NbrIcidentWeek(Date deb,Date fin);

    void create(Incident incident);

    void edit(Incident incident);

    void remove(Incident incident);

    Incident find(Object id);

    List<Incident> findAll();

    List<Incident> findRange(int[] range);

    int count();
    
    public int NbrIcidentWeeksous(Date deb,Date fin,Long sous);
}
